﻿using System.Globalization;
using System.Reflection;
using Xunit;

namespace ShureValidation.Test
{
    public class Tests
    {
        [Fact]
        public void TestEmbedded()
        {
            System.Threading.Thread.CurrentThread.CurrentCulture = new CultureInfo(1053);
            Validator.Add(new AttributeProvider());

            Model2 model = new Model2();
            model.Age = 3;
            var errors = Validator.Validate(model);

        }

        [Fact]
        public void TestFluent()
        {
            Validator.Add(new Fluent.FluentProvider());

            Model3 model = new Model3();
            model.Skills = 3;
            var errors = Validator.Validate(model);
        }
    }
}
